<template>
    <span v-if="tip != ''">
        <a-tooltip placement="topLeft">
            <template #title>
                <span>{{ tip }}</span>
            </template>
            <a-input v-model:value="value" :placeholder="placeholder" />
        </a-tooltip>
    </span>
    <span v-else>
        <a-input v-model:value="value" :placeholder="placeholder" />
    </span>
</template>


<script setup lang="ts">
    const value = defineModel('value')
    defineProps<{
        tip?: string
        placeholder?: string
    }>()
</script>
